package cn.wyu.blogrest.repository;


import cn.wyu.blogrest.entity.User;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;


public interface UserRepository extends CrudRepository<User,Integer> {
    User findFirstByUserNameAndPassword(String userName,String password);
    List<User> findByIdAndFriends(int userId,User friend);
    User findById(int userId);
}
